import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:book-open',
      order: 3,
      title: '账簿',
    },
    name: 'AccountBooks',
    path: '/account-books',
    children: [
      {
        name: 'AccountBooksBalanceSheet',
        path: '/balance-sheet',
        component: () =>
          import('#/views/account-books/balance-sheet/index.vue'),
        meta: {
          title: '科目余额表',
        },
      },
      {
        name: 'AccountBooksGeneralLedger',
        path: '/general-ledger',
        component: () =>
          import('#/views/account-books/general-ledger/index.vue'),
        meta: {
          title: '总账',
        },
      },
      {
        name: 'AccountBooksDetailLedger',
        path: '/sub-ledger',
        component: () =>
          import('#/views/account-books/detail-ledger/index.vue'),
        meta: {
          title: '明细账',
        },
      },
      {
        name: 'AccountBooksAuxiliaryLedger',
        path: '/auxiliary-ledger',
        component: () =>
          import('#/views/account-books/auxiliary-ledger/index.vue'),
        meta: {
          title: '辅助核算总账',
        },
      },
      {
        name: 'AccountBooksAuxiliarySubLedger',
        path: '/auxiliary-sub-ledger',
        component: () =>
          import('#/views/account-books/auxiliary-sub-ledger/index.vue'),
        meta: {
          title: '辅助核算明细账',
        },
      },
      {
        name: 'AccountBooksMultiColumnLedger',
        path: '/multi-column-ledger',
        component: () =>
          import('#/views/account-books/multi-column-ledger/index.vue'),
        meta: {
          title: '多栏账',
        },
      },
    ],
  },
];

export default routes;